﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using simpleHotel.Business;

namespace simpleHotel.Web
{
    public partial class HotelMap : System.Web.UI.Page
    {
        protected string HotelName = string.Empty;
        protected string Add = string.Empty;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.Params["id"] != null)
                {
                    ID = Request.Params["id"].ToString();
                    HotelBLL obj = new HotelBLL();
                    Hotel hotel=obj.GetHotelByID(Int32.Parse(ID));
                    HotelName = hotel.HotelName;
                    Add = hotel.Address1;
                }
            }
        }
    }
}